package com.linsir.auth.vo;

import com.linsir.auth.modules.test.entity.Identity;
import com.linsir.auth.modules.test.entity.Staff;
import com.linsir.core.binding.annotation.BindEntity;
import com.linsir.core.binding.annotation.BindField;
import lombok.Data;

/**
 * @ClassName : StaffDto
 * @Description :
 * @Author : Linsir
 * @Date: 2023-12-23 02:00
 */
@Data
public class StaffVO extends Staff {

    @BindField(entity = Identity.class,field = "netName",condition = "this.id = identity.id")
    private String wlmc;

    @BindEntity(entity = Identity.class,condition = "this.id = identity.id ")
    private Identity identity;
}
